package com.itheima.mapper;

import com.itheima.pojo.Properties;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface ChatManagementMapper {

    @Select("select * from properties")
    List<Properties> findAll();

    @Select("select value from properties where id = #{id}")
    Integer findValueById(Integer id);

    @Update("update properties set value = #{value} where id = #{id}")
    void updateByProp(Properties prop);
}
